package at.fhooe.tof.bl;

import at.fhooe.tof.app.Observer;

public class StateManager {
	
	public static String idleColor = "orange";
	public static String standbyColor = "yellow";
	public static String goColor = "green";
	
	/**
	 * Check the condition value (i.e. number of detected closest points)
	 */
	public static void checkStateCondition(int numPoints){
		if(numPoints==0){
			Observer.sendMsg(idleColor);
		}else if(numPoints==1){
			Observer.sendMsg(standbyColor);
		}else if(numPoints==2){
			Observer.sendMsg(goColor);
		}
	}
	
	 

}
